package shapewar.view.indvidul;

import android.graphics.Canvas;
import android.graphics.Color;
import shapewar.engine.calc.Pos;
import shapewar.engine.model.VisibleArea;
import shapewar.engine.model.abst.Model;
import shapewar.engine.presenter.Presenter;
import shapewar.view.myview.MyView;

public class VisibleAreaView extends MyView{
	VisibleArea va = (VisibleArea) getModel();
	public VisibleAreaView(Presenter pst, Model shape) {
		super(pst, shape);
	}
	
	@Override
	protected void onDraw(Canvas canvas) {
		paint.setColor(Color.BLACK);
		paint.setAlpha(16);
		va._x = pst.ect.player._x;
		va._y = pst.ect.player._y;
		Pos rpos = getRelativePos();
		canvas.drawCircle(rpos.x, rpos.y, va.r * rate, paint);
	}
	
}
